<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
        <ul class="searchContent">
			<li>
				<label>全文关键字查询：</label>
				<input type="text" name="selectname" value="{$_POST['selectname']}"/>
			</li>
            <li>
				<label>报价类型：</label>
				<select name="qtype" class="combox">
                    <option value="" <eq name="_POST['qtype']" value="" >selected</eq>>全部报价</option>
					<option value="1" <eq name="_POST['qtype']" value="1" >selected</eq>>销售报价</option>
					<option value="2" <eq name="_POST['qtype']" value="2" >selected</eq>>进货报价</option>
				</select>
			</li>
		</ul> 
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="navTab" mask="true"><span>新增报价</span></a></li>
			<li><a class="delete" href="__URL__/delQuotes" target="selectedTodo" rel="ids[]" title="注意：删除将直接删除报价及其记录数据，你确定要删除该报价吗？" warn="请勾选要删除的报价"><span>批量删除报价</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_user}" target="dialog" mask="true" warn="请选择要修改的报价"  height="400"><span>修改报价</span></a></li>
            <eq name="_POST['qtype']" value="1" ><li><a class="edit" href="__URL__/updProductsPrice" target="selectedTodo" mask="true" rel="ids[]" title="注意:该操作将直接覆盖之前的商品预设销售价格,您确定要更新吗？" warn="请勾选要更新的报价"><span>批量更新含税价到预售价</span></a></li></eq>
		    <li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
        </ul>
	</div>

	<div layoutH="116" id="w_list_print">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
		<thead>
		<tr>
            <th><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
			<th>序号</th>
			<th orderField="prodname" <if condition="$_REQUEST._order eq 'prodname'">class="{$_REQUEST._sort}"</if>>商品名称</th>
			<th orderField="partmodel" <if condition="$_REQUEST._order eq 'partmodel'">class="{$_REQUEST._sort}"</if>>型号</th> 
            <th orderField="prodsize" <if condition="$_REQUEST._order eq 'prodsize'">class="{$_REQUEST._sort}"</if>>规格</th> 
            <th orderField="comname" <if condition="$_REQUEST._order eq 'comname'">class="{$_REQUEST._sort}"</if>>报价单位</th> 
            <th orderField="qtype" <if condition="$_REQUEST._order eq 'qtype'">class="{$_REQUEST._sort}"</if>>报价类型</th>
            <th orderField="qtime" <if condition="$_REQUEST._order eq 'qtime'">class="{$_REQUEST._sort}"</if>>报价日期</th>
            <th orderField="qtaxprice" <if condition="$_REQUEST._order eq 'qtaxprice'">class="{$_REQUEST._sort}"</if>>含税价(￥)</th>  
            <th orderField="qprice" <if condition="$_REQUEST._order eq 'qprice'">class="{$_REQUEST._sort}"</if>>不含税价(￥)</th>            
            <th orderField="bothprice" <if condition="$_REQUEST._order eq 'bothprice'">class="{$_REQUEST._sort}"</if>>税差价(￥)</th>
            <th orderField="presale" <if condition="$_REQUEST._order eq 'presale'">class="{$_REQUEST._sort}"</if>>当前售价(￥)</th>
            <th orderField="updatetime" <if condition="$_REQUEST._order eq 'updatetime'">class="{$_REQUEST._sort}"</if>>更新时间</th>
            <th>备注</th>     	
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="sid_user" rel="{$vo['id']}">
                <td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td align=center>{$key+1}</a></td>
				<td><a href="__URL__/showContrast/pid/{$vo['prodid']}" class="showlog" title="进销价对比[ {$vo['prodname']} ]" target="dialog" mask="true" width="600" height="500">{$vo['prodname']}</td>
				<td>{$vo['partmodel']}</td> 
                <td>{$vo['prodsize']}</td>
                <td>{$vo['comname']}</td>
                <td>{$vo['qtype']|getQTypes}</td>
                <td><a href="__URL__/showlog/id/{$vo['id']}" class="showlog" title="查看修改记录" target="dialog" mask="true" width="700" height="500">{$vo['qtime']|date="Y-m-d",###}</a></td>
                <td align=right>{$vo['qtaxprice']}</td>
                <td align=right>{$vo['qprice']}</td>                
                <td align=right>{$vo['bothprice']}</td>
                <td align=right>{$vo['presale']}</td>
                <td>{$vo['updatetime']|date="Y-m-d  H:i:s",###}</td>
                <td>{$vo['remarks']}</td>                    
			</tr>
		</volist>
		</tbody>
	</table>
    </div>
	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


